app.constant("dataUrl",'http://127.0.0.1:4000')
	app.controller('bourn',['$scope','$http','dataUrl',function($scope,$http,dataUrl){
			
		$http.get(dataUrl+"/all").then(function(datas){
			// console.log(datas.data.data)
			$scope.users = datas.data.data
			$scope.hotShows =  $scope.users[1].hot_country
			$scope.products =  $scope.users[1].country
		})
		$scope.b = "欧洲";
		
		 // $scope.hotShows =  $scope.users[1].hot_country
		 // $scope.products =  $scope.users[1].country

		$scope.btn = function(i){
			var b = "";
			b =$scope.users[i].cnname;
			$scope.bgCl = i;
			$scope.b = b;
			$scope.hotShows =  $scope.users[i].hot_country
			$scope.products =  $scope.users[i].country
			// console.log($scope.products)
			console.log(i)
		}
		document.documentElement.style.fontSize = innerWidth/16 + 'px';
			window.onresize = function(){
			document.documentElement.style.fontSize = innerWidth/16 + 'px';
		}
	}])
	// url('http://upload.news.cecb2b.com/2013/1219/1387413617180.jpg')